﻿using System.Data.Entity.ModelConfiguration;
using Nop.Core.Domain.Advert;

namespace Nop.Data.Mapping.Advert
{
    public partial class AdvertisementMap : EntityTypeConfiguration<Advertisement>
    {
        public AdvertisementMap()
        {
            this.ToTable("Advertisement");
            this.HasKey(a => a.Id);
            this.Property(a => a.Name).IsRequired();
        }
    }
}
